<template>
  <van-nav-bar
    :title="title"
    left-text="返回"
    :fixed="true"
    left-arrow
    @click-left="$router.back"
    style="
      --van-nav-bar-background: transparent;
      --van-nav-bar-title-text-color: white;
      --van-nav-bar-icon-color: white;
      --van-nav-bar-text-color: white;
      --van-border-width: 0;
    "
  />
  <iframe :src="src" frameborder="0"></iframe>
</template>
<script setup>
import { ref } from 'vue'
import { useRoute } from 'vue-router'
let route = useRoute()
let src = ref(import.meta.env.BASE_URL + route.query.src)

let title = route.query.name ? '以爱之名-' + route.query.name : ''
</script>
<style>
iframe {
  width: 100%;
  height: 100vh;
}
</style>
